package com.woniu.car.ortherModel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import java.util.Date;


@Data
public class CouponSearchParameter {
   
    @Min(value=0,message = "id不可能为负数")
    @ApiModelProperty(value = "优惠券id",example="0")
    private Integer couponId;
    @ApiModelProperty(value = "优惠券编号")
    private String couponNo;
    @Min(value=0,message = "id不可能为负数")
    @ApiModelProperty(value = "种类类型",example="0")
    private Integer type;
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;
    @ApiModelProperty(value = "图片url")
    private String img;

    @Future(message = "你怎么可能给过去的优惠券啊是不是傻?")
    @ApiModelProperty(value = "优惠券开启时间")
    private Date startTime;
    @Future(message = "你怎么可能给过去的优惠券啊是不是傻?")
    @ApiModelProperty(value = "优惠券结束时间")
    private Date endTime;
    @Min(value=0,message = "状态不可能为负数")
    @ApiModelProperty(value = "优惠券名称",example = "0")
    private String status;
    @ApiModelProperty(value = "优惠券名称")
    private String remarks;
    @Min(value=1,message = "你给个负数是几个意思?也不可能生成0张优惠券啊!")
    @ApiModelProperty(value = "优惠券发行数量",example = "0")
    private Integer count;
    @Min(value=1,message = "咱们发放数量至少得在1张以上吧?")
    @ApiModelProperty(value = "优惠券已发送数量",example="0")
    private Integer takeCount;
    @Min(value=1,message = "用了后更新数据库也得一张以上啊")
    @ApiModelProperty(value = "优惠券已使用数量",example = "0")
    private Integer usedCount;
    @Min(value=0,message = "抵扣金额至少得是正数")
    @ApiModelProperty(value = "抵扣金额",example = "0.0")
    private Double deductionMoney;
    @Min(value=0,message = "折扣比例至少得是正数")
    @ApiModelProperty(value = "折扣比例",example = "0.0")
    private Double discountMoney;
    @Min(value=0,message = "抵扣金额至少得是正数")
    @ApiModelProperty(value = "折扣金额",example = "0.0")
    private Double fullMoney;
}
